#pragma once

#include "Node.h"

namespace mgfx
{
	class GfxObject;
}

namespace mscene
{
	class MultiObjectNode : public Node
	{
	public:
		MultiObjectNode(Scene & scene, const char * name = NULL);
		MultiObjectNode(const MultiObjectNode & src);
		virtual ~MultiObjectNode();
		virtual MultiObjectNode* copy();

		virtual void update(float dt);

		virtual float rayIntersection(const mmath::Ray & ray);

		void addGfxObject(mgfx::GfxObject & object);
		std::vector<mgfx::GfxObject*> GfxObjects;
		std::vector<uint> GfxObjectsIDs;
	};
}